package com.twang.stock.mapper;


import java.util.List;

import com.twang.stock.entity.CompanyCodeInfo;
import com.twang.stock.entity.CompanyCodeInfoEx;
import com.twang.stock.entity.CompanyStockMinutes;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface CompanyCodeInfoMapper extends Mapper<CompanyCodeInfo> {
    /**
     * 根据权重查询情绪最集中票
     * @return
     */
    public List selectDataByWeight();



    /**
     * 查询高度数据
     */
    public List queryHighWeight();

    List<CompanyCodeInfo> granteTodayStockInfo();

    List<CompanyCodeInfo> granteTodayStockDesc();

    List<CompanyCodeInfo> granteTodayStockMoneyIn50();

    List<CompanyCodeInfo> granteTodayStockMoneyInDays();

    List<CompanyCodeInfo> getStockInfoMoreThan5(@Param("date") String date);

    List<CompanyCodeInfoEx> getStockInfo(@Param("date") String date);

    List<CompanyCodeInfoEx> getStockInfoByJIngXuan(@Param("tagId") Long tagId,@Param("date") String date);

    List<CompanyCodeInfo> getStockInfoMoreThan5ForReport(@Param("date") String date);

    List<CompanyCodeInfo> getZiXuan();


    /**
     *
     * @param code
     * @return
     */
    CompanyStockMinutes get60MaxTradeVol(@Param("code") String code);

    CompanyStockMinutes get60MaxTradeVolHis(@Param("code") String code);

    List<CompanyCodeInfo> queryMarketValueMore100Y();
}